<template>
  <div class="t-container">
    <div class="lf">
      <div class="tip" v-if="leftLine" />
      {{ title }}
    </div>
    <slot></slot>
  </div>
</template>
<script>
export default {
  props: {
    leftLine: {
      type: Boolean,
      default: true,
    },
    title: {
      type: String,
      default: '默认标题',
    },
  },
}
</script>
<style lang="less" scoped>
.t-container {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  .lf {
    display: flex;
    align-items: center;
    .tip {
      width: 6px;
      height: 18px;
      background: #02e0f7;
      margin-left: 20px;
      margin-right: 8px;
    }
  }
}
</style>